'use strict'

define([ 'jquery', 'bootstrap', 'select2', 'shiftform', 'validate',
    'validate.en', 'datetimepicker'], function($) {
  return {
    init : function() {
      
      this.initPage();
      this.selectForm();
      this.onSubmit();
    },
    
    initPage : function() {
      $(document).on("click", ".add-communication", function() {
        $(".email-footer-content").show();
      })
      
      
    },
    
    selectForm: function() {
      $(document).on("click", ".email-footer-content .label", function() {
        $(this).addClass("active").siblings().removeClass("active");
      })
    },
    
    onSubmit: function() {
      var that = this;
      $(document).on("click", ".add-action", function(e) {
        e.preventDefault();
        $(".add-action-modal").trigger("click")
      })
    }
  }
})